var lcbase = {
    imgView: function (src) {
        return '<div><a href="javascript:lcbase.openImg(\'' + src + '\')">' +
            '<img alt="" style="height: 30px;width: 30px;border-radius: 50%; background-repeat: no-repeat" src=' + src + '></a></div>';
    },
    openImg: function (src, id) {
        layer.photos({
            photos: {
                "data": [{
                    "alt": "",
                    "pid": 0, //图片id
                    "src": src, //原图地址
                    "thumb": src //缩略图地址
                }]
            }
            , shade: 0.3
            , closeBtn: 0
            , anim: 0
        });
    },

    post: function (url, data, callback) {
        return $.post(url,data,callback,"json")
    },

}


